/*
* Copyright 2016 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-common
*
* @File name : LoginUserDto.java
*
* @Author : WangHuicheng
*
* @Date : 2016年11月18日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2016年11月18日    WangHuicheng    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package org.marketing.common.dto.user;

import java.io.Serializable;
import java.util.List;;


/**
*
* @author WangHuicheng
* 用户登录DTO
* @date 2016年11月18日
*/

public class LoginUserDto implements Serializable {

    private static final long serialVersionUID = 6790888041545193519L;
    

    /**
     * 登录用户ID
     */
    private Long userId;
    /**
     * 登录用户名
     */
    private String userName;
    
    /**
     * 经销商代码
     */
    private String dealerCode;
    /**
     * 经销商名称
     */
    private String dealerName;
    /**
     * 角色代码  销售顾问：1、售后顾问：2、销售&售后顾问：3
     */
    private String roleType;
    /**
     * 角色List
     */
    private List<RoleDto> roleList;
    /**
     * 性别
     */
    private String sex;
    /**
     * 手机号码
     */
    private String phone;
    /**
     * 用户头像的URL
     */
    private String avatarURL;
    
    /**
     * 登录用户密码
     */
    private String passWord;
    /**
     * 短信验证码
     */
    private String msgCode;
    /**
     * 手机类型 
     * 1：iOS
     * 2：Android
     */
    private String deviceType;
    
    /**
     * 手机操作系统版本
     */
    private String osVersion;
    /**
     * 手机mac地址
     */
    private String deviceId;
    
    private String position;
    
    
    public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	/**
     * @return the userId
     */
    public Long getUserId() {
        return userId;
    }
    
    /**
     * @param userId the userId to set
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    /**
     * @return the userName
     */
    public String getUserName() {
        return userName;
    }
    
    /**
     * @param userName the userName to set
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    /**
     * @return the dealerCode
     */
    public String getDealerCode() {
        return dealerCode;
    }
    
    /**
     * @param dealerCode the dealerCode to set
     */
    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }
    
    /**
     * @return the dealerName
     */
    public String getDealerName() {
        return dealerName;
    }
    
    /**
     * @param dealerName the dealerName to set
     */
    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }
    
    
    /**
     * @return the roleType
     */
    public String getRoleType() {
        return roleType;
    }

    
    /**
     * @param roleType the roleType to set
     */
    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    /**
     * @return the roleList
     */
    public List<RoleDto> getRoleList() {
        return roleList;
    }

    
    /**
     * @param roleList the roleList to set
     */
    public void setRoleList(List<RoleDto> roleList) {
        this.roleList = roleList;
    }

    

    /**
     * @return the sex
     */
    public String getSex() {
        return sex;
    }
    
    /**
     * @param sex the sex to set
     */
    public void setSex(String sex) {
        this.sex = sex;
    }
    
    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }
    
    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    /**
     * @return the avatarURL
     */
    public String getAvatarURL() {
        return avatarURL;
    }
    
    /**
     * @param avatarURL the avatarURL to set
     */
    public void setAvatarURL(String avatarURL) {
        this.avatarURL = avatarURL;
    }

    
    /**
     * @return the passWord
     */
    public String getPassWord() {
        return passWord;
    }

    
    /**
     * @param passWord the passWord to set
     */
    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    
    /**
     * @return the msgCode
     */
    public String getMsgCode() {
        return msgCode;
    }

    
    /**
     * @param msgCode the msgCode to set
     */
    public void setMsgCode(String msgCode) {
        this.msgCode = msgCode;
    }

    
    /**
     * @return the deviceType
     */
    public String getDeviceType() {
        return deviceType;
    }

    
    /**
     * @param deviceType the deviceType to set
     */
    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    
    /**
     * @return the osVersion
     */
    public String getOsVersion() {
        return osVersion;
    }

    
    /**
     * @param osVersion the osVersion to set
     */
    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    
    /**
     * @return the deviceId
     */
    public String getDeviceId() {
        return deviceId;
    }

    
    /**
     * @param deviceId the deviceId to set
     */
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

	@Override
	public String toString() {
		return "LoginUserDto [userId=" + userId + ", userName=" + userName + ", dealerCode=" + dealerCode
				+ ", dealerName=" + dealerName + ", roleType=" + roleType + ", roleList=" + roleList + ", sex=" + sex
				+ ", phone=" + phone + ", avatarURL=" + avatarURL + ", passWord=" + passWord + ", msgCode=" + msgCode
				+ ", deviceType=" + deviceType + ", osVersion=" + osVersion + ", deviceId=" + deviceId + ", position="
				+ position + "]";
	}

}
